package cn.kai.ymcc.dto;

import cn.kai.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {
    @Pattern(regexp = AssertUtil.phoneReg,message = "手机号不合法")
    private String mobile;

    @Size(min=3,max = 6,message = "密码必须是3-6位")
    private String password;
    @Size(min=6,max = 6,message = "验证码必须是 6 位")
    private String smsCode;
    private Integer regChannel; //注册的渠道

}
